import event.IEvent;
import event.IEventListener;

public class TestEvents implements IEventListener
{
	private TestEventMethod testEventMethod;
	public TestEvents()
	{
		testEventMethod=new TestEventMethod();
		testEventMethod.addEventListener("testType1", this);
		testEventMethod.addEventListener("testType1", this);
		testEventMethod.addEventListener("testType2", this);
		testEventMethod.addEventListener("testType3", this);
	}
	
	public void testGo()
	{
		testEventMethod.testGo();
	}
	
	@Override
	public void handleEvent(IEvent event)
	{
		System.out.println(event.getCurrentTarget());
		System.out.println(event.getType());
		System.out.println(event.getData());
	}
}
